-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tightly coupled market-commons with prediction markets. #900
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double-booking the implementation of MarketCommonsPalletApi
into the implementation of the zrml_market_commons::Pallet::<T>
seems strange. Is there a particular reason why you did that, instead of replacing every zrml_market_commons::Pallet::<T>
with <zrml_market_commons::Pallet::<T> as MarketCommonsPalletApi>
?
Frankly I did not get this idea when editing, I though for loose coupling we use MarketCommonsPalletApi and for tight coupling we directly use functions from pallet and don't need to import MarketCommonsPalletApi. |
Starting my review now.. |
It's a matter of dependency. With loose coupling, you can only access the config parameter But since the MDMs are still loosely coupled, I think we should move |
You like to have the tight coupling of |
yes if it is really required, as per discussion in one of the meeting we feel that swaps should not be tightly coupled with market-commons. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of the tightly couple.
so what is the motivation here? Just that above trait is imported from primitives and not from market_commons? I mean only implementer of that trait is MarketCommons so I am fine with any approach. |
Because the MDMs and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fixes #805